package com.isoftstone.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.isoftstone.dao.CheckedDao;
import com.isoftstone.entity.Diagnosis;
import com.isoftstone.entity.Register;
import com.isoftstone.service.CheckedService;

@Service("CheckedService")
public class CheckedServiceImpl implements CheckedService{
	@Autowired
	private CheckedDao checkedDao;
	@Override
	public List<Register> getAllPatientList(){
		// TODO Auto-generated method stub
		return checkedDao.getAllPatientList();
	}
	
	@Override
	public Register getRegisterByGuahaoId(String guahao_id){
		if(guahao_id!=null)	{
			Register register = checkedDao.getRegisterByGuahaoId(guahao_id);
			System.out.print(register);
			return register;
		}
		return null;	
		}
	
	@Override
	public Diagnosis getDiagnosisByZhenduanId(String guahao_id){
		if(guahao_id!=null){
			Diagnosis diagnosis = checkedDao.getDiagnosisByZhenduanId(guahao_id);
			System.out.print(diagnosis);
			return diagnosis;
		}
		return null;
		}
	
	}



